package com.cjkj.system.api;

import com.cjkj.common.core.constant.ServiceNameConstants;
import com.cjkj.common.core.web.domain.AjaxResult;
import com.cjkj.system.api.factory.RemoteTJ02HealthReportFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 请求多参数监测仪报告接口
 */
@FeignClient(contextId = "remoteHealthReportBraceletService",value = ServiceNameConstants.SYSTEM_SERVICE,fallbackFactory = RemoteTJ02HealthReportFallbackFactory.class )
public interface RemoteTJ02HealthReportService {

    @GetMapping("/reports/tj02/heartRate")
    AjaxResult getHeartReports(@RequestParam("visitNo") Long visitNo);

    @GetMapping("/reports/tj02/temperature")
    AjaxResult getTemperatureReports(@RequestParam("visitNo") Long visitNo);

    @GetMapping("/reports/tj02/spO2")
    AjaxResult getSpo2Reports(@RequestParam("visitNo") Long visitNo);

    @GetMapping("/reports/tj02/getPatientReportData")
    AjaxResult requestPrintReportData(@RequestParam("visitNos") String visitNos, @RequestParam("reportItems") String reportItems);
}
